home *** CD-ROM | disk | FTP | other *** search
- Path: in1.uu.net!interaccess!pbrianmcg
- From: brianmcg@interaccess.com (Brian V. McGroarty)
- Newsgroups: comp.lang.c,comp.programming
- Subject: Re: Assertive or Defensive?
- Date: 24 Mar 1996 00:55:29 GMT
- Organization: InterAccess, Chicago's best Internet Service Provider
- Message-ID: <4j26i1$n10@nntp.interaccess.com>
- References: <4ioggn$3sf@dazzle.east-tenn-st.edu> <4itcs2$po3@B1FF.mindspring.com> <31546257.11E1@olympic.net>
- NNTP-Posting-Host: d214.nhe.interaccess.com
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <31546257.11E1@olympic.net>,
- "Erik W. Anderson" <eanders@olympic.net> wrote:
- >Eric Friedman wrote:
- >> IMHO, assertions should be used during development to help detect
- >> situations not expected in "real-life", but that can be encountered
- >> during the initial coding effort. Detecting null pointers would be an
- >> example. Defensive coding should certainly be used to detect bad input
- >> from users.
-
- >> Use assertions to detect programming errors.
-
- >To follow up on that point, an execellant book to check out is
- >"Writing Solid Code" by Steve MacGuire published by MS Press
- >under ISBN 1-55615-551-4.
-
-
- I'll underscore that -- anyone new to system-level programming (game and OS
- guys) MUST read this text for ideas on taming wild pointers and resource
- leaks.
-
- For others, it will prove highly useful. You'll probably find half a dozen
- refinements of tricks you already hold dearly and another half dozen new
- gems. The book is even a fun read with a bit of personality.
-
-
- ---
- Brian Valters McGroarty -- brianmcg@bix.com
- phone/fax (847) 439-7714
-